package com.hancheng.commoncloud.framework.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * mybatis 分页
 *
 * @author 金笛
 * @date 2022/1/23 12:40
 */
@ApiModel(description = "分页信息")
@Data
public class PageResult<T> implements Serializable {


    @ApiModelProperty(value = "总条数")
    private long total;
    @ApiModelProperty(value = "对象列表")
    private List<T> list;

    public PageResult(long total, List<T> list) {
        this.total = total;
        this.list = list;
    }

}
